#include <iostream>
#include <cstdio>
using namespace std;

int main(){
	int m,f;
	cin>>m>>f;
	if(m+f<10){
		cout<<"water";
	}else if(m+f>=10&&m>f){
		cout<<"tree";
	}else{
		cout<<"tea";
	}
	return 0;
}
